package com.hz.pay.center.mapper;


import com.hz.pay.center.model.PayChannelInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface PayChannelInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(PayChannelInfo record);

    int insertSelective(PayChannelInfo record);

    PayChannelInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PayChannelInfo record);

    int updateByPrimaryKey(PayChannelInfo record);

    /**
     * 根据商户信息查询支付渠道
     * @param mchId
     * @param payChannel
     * @param payWay
     * @return
     */
    PayChannelInfo queryByMchIdAndPayWay(@Param("mchId")String mchId,
                                         @Param("payChannel")String payChannel,
                                         @Param("payWay")String payWay);



}